<template>
  <div class="main">
    <div class="logo">
      <img src="../../assets/image/logo.png"/>
    </div>
    <div class="text">
      <img src="../../assets/image/text.png"/>
    </div>
    <div class="btn" @click="goHome">
      认捐树木
    </div>
  </div>
</template>

<script>
  export default {
    data() {
      return {

      };
    },
    created() {},
    methods: {
      goHome(){
        this.$router.push("/home")
      }
    },
  };
</script>

<style lang="scss" scoped>
  .main{
    width: 100%;
    height: 100vh;
    background: url(../../assets/image/index-bg.png) no-repeat top center;
    background-size: cover;
    position: relative;
  }
  .logo{
    position: absolute;
    top: 5%;
    left: 8%;
    display: flex;
    align-items: center;
    img{
      height: 40px;
    }
  }
  .text{
    position: absolute;
    top: 13%;
    left: 8%;
    display: flex;
    align-items: center;
    img{
      width: 80%;
    }
  }
  .btn{
    position: fixed;
    bottom: 5%;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 80%;
    height: 44px;
    background: rgb(68, 224, 99);
    border-radius: 20px;
    text-align: center;
    line-height: 44px;
    color: #fff;
  }
</style>
